//
//  HDUserAgreementViewController.swift
//  HuaDaoPeifu
//
//  Created by Erickson on 16/4/7.
//  Copyright © 2016年 paiyipai. All rights reserved.
//

import UIKit

class HDUserAgreementViewController: UIViewController {
    
    
    override func viewDidLoad() {
        super.viewDidLoad()
        view.backgroundColor = UIColor.white
        title = "用户协议"
        let webView = UIWebView(frame: self.view.bounds)
        view.addSubview(webView)
        
        webView.snp.makeConstraints { (make) in
            make.left.right.equalToSuperview()
            make.top.equalTo(self.topLayoutGuide.snp.bottom)
            make.bottom.equalTo(self.bottomLayoutGuide.snp.top)
        }
        
        let request = URLRequest(url: URL(string: BaseApi.agreementApiUrl)!)
        webView.loadRequest(request)
    }
    
}
